package com.ruoyi.project.system.device.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class MyDeviceDTO implements Serializable {

    /**
     * 设备id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("设备id")
    private Long id;

    /**
     * 设备名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty("设备名称")
    private String name;

    /**
     * 设备串口
     */
    @TableField(value = "serial_port")
    @ApiModelProperty("设备串口")
    private String serialPort;

    /**
     * 比特率
     */
    @TableField(value = "bit_rate")
    @ApiModelProperty("比特率")
    private Long bitRate;

    /**
     * 设备运行状态（1已停止 2正在运行）
     */
    @TableField(value = "`state`")
    @ApiModelProperty("设备运行状态（1已停止 2正在运行）")
    private Boolean state;

    /**
     * 设备运行时间
     */
    @TableField(value = "run_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("设备运行时间")
    private String runTime;

    @TableField(value = "P1_now")
    @ApiModelProperty(name = "GCMS真空度")
    private String p1Now;

    @TableField(value = "P2_now")
    @ApiModelProperty(name = "样品仓真空度")
    private String p2Now;

    @TableField(value = "CangTi_h1_1_now")
    @ApiModelProperty(name = "样品仓当前温度h1")
    private String cangtiH11Now;

    @TableField(value = "CangTi_h1_2_now")
    @ApiModelProperty(name = "样品仓当前温度h2")
    private String cangtiH12Now;

    @TableField(value = "BuJiJing_T3_now")
    @ApiModelProperty(name = "捕集阱温度值")
    private String bujijingT3Now;

    @TableField(value = "BuJiJing_T4_1_now")
    @ApiModelProperty(name = "捕集阱前温度值")
    private String bujijingT41Now;

    @TableField(value = "BuJiJing_T4_2_now")
    @ApiModelProperty(name = "捕集阱后温度值")
    private String bujijingT42Now;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableField(value = "del_flag")
    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @ApiModelProperty("设备明细数据列表")
    private List<MyDeviceDtailsDTO> detailsList;

    private MyDeviceDtailsDTO dtailsDTO;

    private List<SettingDTO> settingDTOS;

    private List<MyPlan> myPlans;

    private Long planId;

    private Integer changeSel;

    private String planName;

    private String SampleName;
    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty("备注")
    private String remark;
}
